﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class User_SBacklog : INTPage
{
    CommonMethod comHelp = new CommonMethod();
    SqlHelp help = new SqlHelp();
    public int rowNo = 0;

    protected void Page_Load(object sender, EventArgs e)
    {
        IsTimeOut();
        if (!IsPostBack)
        {
            ////权限
            //GetRight(new string[] { Session["UserCode"].ToString(), Session["CoCode"].ToString(), "SBacklog" });
            //txtDateFrom.Value = System.DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd");
            //txtDateTo.Value = System.DateTime.Now.ToString("yyyy-MM-dd");
            //QueryBind(0);
            //bindGV();
        }
    }
    //页面权限
    protected void GetRight(string[] Temp)
    {
        //bool[] RightTemp = ComHelp.GetRight(Temp);
        //if (!RightTemp[0])//查看权限
        //{ Response.Write("<script language='javascript'>window.parent.location.href='SLogin.aspx';</script>"); }
    }
    //查询
    protected void cmdSearch_Click(object sender, EventArgs e)
    {
        QueryBind(1);
        hidQuery.Value = "1";
        bindGV();
    }

    #region 判断是否超时
    protected void IsTimeOut()
    {
        if (Session["UserCode"] == null)
        {
            CommonMethod.regAlertMessage("登陆超时--Login TimeOut", this);
            Response.Redirect("~/error.aspx");
        }
    }
    #endregion
   
    //重置
    protected void cmdReset_Click(object sender, EventArgs e)
    {
        txtDateFrom.Value = System.DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd");
        txtDateTo.Value = System.DateTime.Now.AddDays(7).ToString("yyyy-MM-dd");
    }
    //查询函数
    protected void QueryBind(int n)
    {
        
    }
    //预览、打印
    protected void GrvEA_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        
    }

    #region Sunwen预支审核查询
    public void bindGV()
    {
        
    }
    
    #endregion
}